package com.dakor.catalog.persistence.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * Abstract DAO.
 *
 * @author Korobeynikov Dmitry
 * @version 1.0
 */
public class AbstractDao extends HibernateDaoSupport {

    @Autowired
    private void init(@Qualifier("sessionFactory") SessionFactory sessionFactory) {
        super.setSessionFactory(sessionFactory);
    }

}
